<template>
  <div flex-col gap-y-10 style="width: 30px">
    <div style="display: flex">
      <n-button type="primary" size="small" @click="onEdit">
        编辑
      </n-button>
      <n-button type="error" size="small" @click="onDelete" style="margin-left: 5px;">
        删除
      </n-button>
    </div>
  </div>
</template>

<script setup>
const emit = defineEmits(['clickDelete'],['clickEdit'])
const onDelete = ()=>{
  emit('clickDelete')
}
const onEdit = ()=>{
  emit('clickEdit')
}
</script>
